package lib.Base;

import java.io.Serializable;
import java.util.ArrayList;

public class Post implements Serializable {
	/**
	 * Class which stores a post and its comments.
	 */
	private static final long serialVersionUID = 1L;

	private int Id;
	private long Time;
	private String Text;
	private String PictureId;

	ArrayList<Message> Comments = new ArrayList<Message>();

	public Post(int Id) {
		this.Id = Id;
	}

	public void setId(int Id) {
		this.Id = Id;
	}

	public int getId() {
		return Id;
	}

	public void setTime(long Time) {
		this.Time = Time;
	}

	public long getTime() {
		return Time;
	}

	public void setText(String Text) {
		this.Text = Text;
	}

	public String getText() {
		return Text;
	}

	public void setPictureId(String PictureId) {
		this.PictureId = PictureId;
	}

	public String getPictureId() {
		return PictureId;
	}

	public void addComment(Message message) {
		Comments.add(message);
	}

	public void sortComments() {

	}

	public ArrayList<Message> getComments() {
		return Comments;
	}
}
